package cn.wsalix.login.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.anlaser.repository.BasicRepository;
import cn.wsalix.login.entity.QQAccessToken;

public interface QQAccessTokenRepository extends BasicRepository<QQAccessToken> {

	@Query(value = "select u from QQAccessToken u where u.openid = :openId")
	public QQAccessToken findByOpenId(@Param("openId") String openId);
}
